home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 11
/
Amiga Format AFCD11 (Feb 1997, Issue 95).iso
/
-readerstuff-
/
david_perks
/
requesters
/
browse.doc
< prev
next >
Wrap
Text File
|
1997-01-31
|
3KB
|
77 lines
ArpBrowse version 1.1 Writen in E by D.Perks 1994
AslBrowse version 1.0
Use filerequester to launch program or select arguements.
Will launch program selected by file requester
alternatively, provide program as arguement and
select file to act on: eg Browse ed will bring up
a file selector to choose a file to edit with ed.
Defaults to current directory. else Browse prog DIR path
From Workbench edit info tooltypes ;
PROG=progname eg PROG=ed or PROG=loadlib
OUTPUT=window/file
eg OUTPUT=CLI:0/10/640/90/FR: enter to close
or OUTPUT=ram:outfile
DIR=disk/directory eg DIR=df0:s
HINTS (drive with care)
From cli/shell
Firstly, I suggest you rename the program so it has a shorter
name, I call it fr, it doesn't take so long to type.
If you can't remember the name or location of a program
-enter <Browse> this will put up a requester allowing you
to search and launch your program. Output will be sent to
the cli/shell. If its a command which doesn't provide quick
feedback you might want to enter <Browse run> which
will give you back control of the cli.
You could <run Browse> but this would leave browse active (it
seems to use around 30K while open).
If you need to add a filename as the arguement
to a command then enter <browse commandname> eg browse ed the
chosen file will be added to your command name and executed.
Path may be specified with DIR path. eg Browse ed DIR s:
From workbench
With no specified tooltypes Browse will simply
launch the selected program. The advantage is that it's
quicker for a requester to look at different drawers than
for workbench to open them. Also all files are shown.
You can use the requester like a command line.
Simply enter additional information at the start or end of
the Drawer/File selection. eg
Drawer DF0:s becomes ed DF0:s or even copy DF0:s
File startup2 startup2 start#? ram:
Try it to see. If Drawer is empty put the command at the
start of File.
You can choose a command to preload Browse
by adding tool type PROG=progname in info (information).
Select the Browse icon and then info from workbench menu bar.
You can change the default directory DIR=disk/directory
You can create an output file OUTPUT=file/window if you
expect an answer from your command.
The provided icon already contains these tooltypes.
Just delete the ; at the start of the tooltype description to
activate it and alter as required.
Browse is around 2k in size so you could set up requesters for
several different commands simply by making copies of browse
under different names and with appropriate tool type
specifications.
WHY?
Initially I wanted a requester to select a file before
entering ED. Then I realized that any command requiring
arguements could use the requester. It could even be used
to launch commands. It's like the Wb2.0 Execute Command
menu item except you can browse for the command/arguements.
You will need arp.library in LIBS: for Browse
or asl.library for aslbrowse.
I wrote it in E because it's my favourite language.
Copyright remains with the author.
Browse may be freely distributed.